﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Web;

namespace WebService.Nafania.ViewLayer.Model.ObjectView
{
	[DataContract]
	public class ListView : Base.ObjectView
	{
		[DataMember]
		public List<KeyValuePair> Values { get; set; }

		public override string ToString()
		{
			StringBuilder sb = new StringBuilder(base.ToString());
			foreach (var pair in Values)
			{
				sb.AppendFormat("PairKey: {0}, PairValue: {1}\r\n", pair.Key, pair.Value);
			}
			return sb.ToString();
		}
	}
}